package com.zbkj.crmeb.order.channel;

import com.crmeb.core.common.CommonResult;
import com.zbkj.crmeb.order.AbstractStoreOrderService;
import com.zbkj.crmeb.store.dao.StoreOrderDao;
import com.zbkj.crmeb.store.model.StoreOrder;
import com.zbkj.crmeb.store.vo.StoreOrderInfoVo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("insideStoreOrderServiceImpl")
public class InsideStoreOrderServiceImpl extends AbstractStoreOrderService {

    private static Logger logger = LoggerFactory.getLogger(InsideStoreOrderServiceImpl.class);

    @Resource
    private StoreOrderDao storeOrderDao;
    @Override
    public CommonResult addChannelOrder(StoreOrder storeOrder , List<StoreOrderInfoVo> orderInfoVoList) {
        storeOrder.setPushStatus(3);
        storeOrder.setPushMessage("自建商品不需要推送!");
        storeOrderDao.updateById(storeOrder);
        return CommonResult.success();
    }

    @Override
    public CommonResult cancelChannelOrder(StoreOrder storeOrder, List<StoreOrderInfoVo> orderInfoVoList) {
        return null;
    }

    @Override
    public CommonResult<Object> getOrderInfo(String channelOrderSn) {
        return null;
    }

}
